<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
 <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
 <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
 <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
 <script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
 <script src="https://cdn.bootcss.com/js-sha1/0.6.0/sha1.min.js"></script>

<link href="../../ico.ico" rel="icon" type="image/x-icon" />
  
</head>


<body>
        <div class="container" style="padding-top: 20px;">
		  <h2>管理员账户登陆</h2>
		  <form>
		    <div class="form-group">
		      <label for="text">账号:</label>
		      <input type="text" class="form-control"  id="user" placeholder="管理员账号">
		    </div>
		    <div class="form-group">
		      <label for="pwd">管理员密码:</label>
		      <input type="password" class="form-control" id="password" placeholder="管理员密码">
		    </div>

		    <button type="button" class="btn btn-primary" id="login">登陆</button>
		  </form>
		</div>

</html>
</body>
<script type="text/javascript">
	 $('#login').on('click',function  () {

     	let data={};
     	    data.user=$('#user').val()
     	    data.password=sha1($('#password').val())
            
     	    data=JSON.stringify(data)
     	    
     	   let  url='/jd/login_admin?&data='+data
     	   window.location.href=encodeURI(url)
 
   	
      })//login click end！！！！    
</script>